package com.lzx.answer.service;

import com.lzx.answer.entity.Reply;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lzx.answer.entity.vo.NicknameVO;
import com.lzx.answer.entity.vo.OssVO;
import com.lzx.common.utils.R;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lzx
 * @since 2022-10-05
 */
public interface ReplyService extends IService<Reply> {

    //问题的回复
    R reply(Reply reply);

    //获取当前问题的一级评论
    R getLevel1Comments(Long problemId);

    //问题回复置顶
    R replyTop(Long problemId, Long replyId);

    //热评
    R hopReply();

    //修改用户头像(问题一级回复)
    String updateAvatarToReply(OssVO ossVO);

    //修改用户昵称(问题一级回复)
    String updateNicknameToReply(NicknameVO nicknameVO);
}
